<?php 
    //-------------------INPUT ELEMENTS----------------
    $user_name 		= $this->Item['user_name'];
    if(!empty($this->Item['user_avatar'])){
        $user_avatar 	= FILES_URL . '/users/img100x100/' . $this->Item['user_avatar'];
        $user_avatar = "<img src ='$user_avatar'><br>" . $this->Item['user_avatar'];
    }
    $email		= $this->Item['email'];
    $first_name		= $this->Item['first_name'];
    $last_name		= $this->Item['last_name'];
    $birthday		= $this->Item['birthday'];
    $register_date	= $this->Item['register_date'];

    $status = $this->Item['status'];
    if ($status == 1) {
        $status = $this->cmsIconButton('Active', $this->imgUrl . '/icon/active.png', $linkStatus);
    } else {
        $status = $this->cmsIconButton('Inactive', $this->imgUrl . '/icon/inactive.png', $linkStatus);
    }

    $slbGroup = $this->Item['group_name'];
    $sign = $this->cmsReplaceString($this->Item['sign']);
    $arrInput = array(
                                            array('label'=>'User name: ', 'input'=>$user_name),
                                            array('label'=>'Avatar: ', 'input'=>$user_avatar,'style'=>'margin-left: 175px;'),
                                            array('label'=>'Email: ', 'input'=>$email),
                                            array('label'=>'Group name: ', 'input'=>$slbGroup),
                                            array('label'=>'First name: ', 'input'=>$first_name),
                                            array('label'=>'Last name: ', 'input'=>$last_name),
                                            array('label'=>'Birthday: ', 'input'=>$birthday),
                                            array('label'=>'Register date: ', 'input'=>$register_date),
                                            array('label'=>'Status: ', 'input'=>$status),
                                            array('label'=>'Sign: ', 'input'=>$sign,'style'=>'margin-left: 175px;'),
                                            );
    //------------------------MESSAGES ERROR----------------------
    if(count($this->messageError) > 0){
        $error = $this->formErrors($this->messageError, array('id'=>'errors'));		
    }
    
    
?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">
    
                        <?php echo $this->render('admin-user/toolbar/index.php') ;?>
                        <?php // include_once 'toolbar/index.php';?>
                        <div class="clr"></div>
                        <?php echo $this->render('admin-user/sublink/index.php') ;?>
                        <?php echo $error;?>
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
                                <div id="adminfieldset">
                                    <div class="adminheader">Detail</div>
                                    <?php echo $this->partialLoop('row.php', $arrInput);?>
                                    
                                </div>
                                <!-- Area 4: In du lieu lay tu database -->
                                
                                <!-- Area 4: In du lieu lay tu database - End -->

                                <!-- END: ELEMENT BOX -->	
                                <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>